import request from '@/api/request'

function articleList(data) {
    return request({
        url: "/api/leju/admin/article/list",
        method: "get",
        data
    })
}

function articalDel(data) {
    return request({
        url: "/api/leju/admin/article/del",
        method: 'get',
        data
    })
}

function articalDetail(data) {
    return request({
        url: "/api/leju/admin/article/detail",
        method: "get",
        data
    })
}

function articalSaveOrUpdate(data) {
    return request({
        url: '/api/leju/admin/article/saveOrUpdate',
        method: 'post',
        data
    })
}

export default ({
    articleList,
    articalDel,
    articalDetail,
    articalSaveOrUpdate
})